testsuite: Add a bunch of parsing tests for :not()
authorBenjamin Otte <otte@redhat.com>
Tue, 25 Nov 2014 18:33:18 +0000 (19:33 +0100)
committerBenjamin Otte <otte@redhat.com>
Tue, 25 Nov 2014 18:33:18 +0000 (19:33 +0100)
testsuite/css/parser/Makefile.am
testsuite/css/parser/not.css [new file with mode: 0644]
testsuite/css/parser/not.ref.css [new file with mode: 0644]

index 4c35afeecf0f2f64e6631f597e3d6192ba4f5afc..d148cedc13dc6d1209ab81b2b44bd7813d78986b 100644 (file)
@@ -326,6 +326,8 @@ test_data = \
        linear-gradient.ref.css \
        no-semicolon.css \
        no-semicolon.ref.css \
+       not.css \
+       not.ref.css \
        nth-child.css \
        nth-child.ref.css \
        property-name-errors.css \
diff --git a/testsuite/css/parser/not.css b/testsuite/css/parser/not.css
new file mode 100644 (file)
index 0000000..59da972
--- /dev/null
@@ -0,0 +1,80 @@
+:not(*) {
+  color: tomato;
+}
+
+:not(GtkButton) {
+  color: tomato;
+}
+
+:not(:hover) {
+  color: tomato;
+}
+
+:not(.yourmom) {
+  color: tomato;
+}
+
+:not(#yourmom) {
+  color: tomato;
+}
+
+:not( *) {
+  color: tomato;
+}
+
+:not( GtkButton) {
+  color: tomato;
+}
+
+:not(    :hover) {
+  color: tomato;
+}
+
+:not(    .yourmom) {
+  color: tomato;
+}
+
+:not( #yourmom) {
+  color: tomato;
+}
+
+:not(* ) {
+  color: tomato;
+}
+
+:not(GtkButton  ) {
+  color: tomato;
+}
+
+:not(:hover      ) {
+  color: tomato;
+}
+
+:not(.yourmom       ) {
+  color: tomato;
+}
+
+:not(#yourmom      ) {
+  color: tomato;
+}
+
+:not( * ) {
+  color: tomato;
+}
+
+:not( GtkButton   ) {
+  color: tomato;
+}
+
+:not(  :hover   ) {
+  color: tomato;
+}
+
+:not(       .yourmom                    ) {
+  color: tomato;
+}
+
+:not(                   #yourmom ) {
+  color: tomato;
+}
+
diff --git a/testsuite/css/parser/not.ref.css b/testsuite/css/parser/not.ref.css
new file mode 100644 (file)
index 0000000..7cb0fb3
--- /dev/null
@@ -0,0 +1,80 @@
+:not(*) {
+  color: rgb(255,99,71);
+}
+
+:not(GtkButton) {
+  color: rgb(255,99,71);
+}
+
+:not(:hover) {
+  color: rgb(255,99,71);
+}
+
+:not(.yourmom) {
+  color: rgb(255,99,71);
+}
+
+:not(#yourmom) {
+  color: rgb(255,99,71);
+}
+
+:not(*) {
+  color: rgb(255,99,71);
+}
+
+:not(GtkButton) {
+  color: rgb(255,99,71);
+}
+
+:not(:hover) {
+  color: rgb(255,99,71);
+}
+
+:not(.yourmom) {
+  color: rgb(255,99,71);
+}
+
+:not(#yourmom) {
+  color: rgb(255,99,71);
+}
+
+:not(*) {
+  color: rgb(255,99,71);
+}
+
+:not(GtkButton) {
+  color: rgb(255,99,71);
+}
+
+:not(:hover) {
+  color: rgb(255,99,71);
+}
+
+:not(.yourmom) {
+  color: rgb(255,99,71);
+}
+
+:not(#yourmom) {
+  color: rgb(255,99,71);
+}
+
+:not(*) {
+  color: rgb(255,99,71);
+}
+
+:not(GtkButton) {
+  color: rgb(255,99,71);
+}
+
+:not(:hover) {
+  color: rgb(255,99,71);
+}
+
+:not(.yourmom) {
+  color: rgb(255,99,71);
+}
+
+:not(#yourmom) {
+  color: rgb(255,99,71);
+}
+